Even if we don't have border windows, we need to set the input
shape so we ignore clicks in the shadow region.
GtkStyleContext *context;
GtkStateFlags state;
- if (priv->border_window[0] == NULL)
- return;
-
state = gtk_widget_get_state_flags (widget);
context = gtk_widget_get_style_context (widget);
gtk_style_context_restore (context);
get_shadow_width (widget, &window_border);
+ if (priv->border_window[0] == NULL)
+ goto shape;
+
if (!priv->resizable ||
priv->tiled ||
priv->fullscreen ||
gdk_window_hide (priv->border_window[GDK_WINDOW_EDGE_EAST]);
}
+shape:
/* we also update the input shape, which makes it so that clicks
* outside the border windows go through
*/